package cn.botter.subject.application.convert;


import cn.botter.subject.application.dto.SubjectInfoDTO;
import cn.botter.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoDTOConverter {

    SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);

    /**
     * 标签DTO
     * @param
     * @return
     */
    SubjectInfoBO convertDtoToBo(SubjectInfoDTO subjectInfoDTO);

    SubjectInfoDTO convertBoToDto(SubjectInfoBO resultInfoBO);

    List<SubjectInfoDTO> convertBoToDtoList(List<SubjectInfoBO> boList);


//    SubjectInfoDTO  convertBotoDto(PageResult<SubjectInfoBO> subjectInfoBO);
}
